﻿@if ( Roles.IsUserInRole("admin")) {
    <span> Welcome <b>@WebSecurity.CurrentUserName</b>! </span>
}
else {
    Response.Redirect("~/Shared/AdminError");
}
@{
    ViewBag.Title = "Import";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Import</h2>
 @using (Html.BeginForm("Importexcel", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
 {
 <table>
 <tr><td>Excel file</td><td><input  type="file"  id="FileUpload1" name="FileUpload1"/></td></tr>
 <tr><td></td><td><input  type="submit" id="Submit" name="Submit" value="Submit"/></td></tr>
 </table>
 }